﻿using huqiang.Core.HGUI;
using huqiang.Data;
using huqiang.HotUIModel;
using System;
using UnityEngine;

public class Main
{
    public static void Start(UIElement uiRoot, string Cmd, object dat)
    {
        UIPage.UIRoot = uiRoot;
        UIPage.LoadPage<HotPage.StartPage>("start");
    }
    public static void Update(float time)
    {
        if (UIPage.CurrentPage != null)
            UIPage.CurrentPage.Update(time);
    }
    public static void Cmd(string cmd, object obj)
    {
        
    }
    public static void FullCmd(DataBuffer req)
    {
        
    }
    public static void Resize()
    {
        if (UIPage.CurrentPage != null)
            UIPage.CurrentPage.ReSize();
    }
    public static void Dispose()
    {
        if (UIPage.CurrentPage != null)
            UIPage.CurrentPage.Dispose();
    }
}
